﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Commerce.Base.Ubl
{
    /// <summary>
    /// Information about item identification.
    /// </summary>
    public class ItemIdentification
    {
        private DataType.Identifier id;
        private DataType.Identifier extendedId;

        /// <summary>
        /// An identifier for an item.
        /// </summary>
        public DataType.Identifier Id
        {
            get { return id; }
            set { id = value; }
        }
        
        /// <summary>
        /// An extended identifier for the item that identifies the item with specific properties, e.g., Item 123 = Chair / Item 123 Ext 45 = brown chair.
        /// </summary>
        public DataType.Identifier ExtendedId
        {
            get { return extendedId; }
            set { extendedId = value; }
        }
        
        public ItemIdentification(DataType.Identifier id)
        {
            this.id = id;
        }

        public override string ToString()
        {
            return this.id;
        }
    }
}
